'''
Runing this script should output all of the raw information for experiment 2
as defined in the assignment specification doc.
Input shape files are 10 files you are required to write named shapes<i>.txt, following
the format of the supplied shapes.txt and complying with the constraints defined in the
assignment specification  document.
Use the function makeShapes() in BlokusGameInput.py to ensure compliance.
players compared should be defined each in a faile named 'BlokusAgent<choose the name>.py'.	
Output should be to the file 'output2.txt' (or csv). 
Alternatively, you may split the output into multiple files named 
'output2_<a relevant name>.txt' (or csv).
'''
from BlokusCompetitionAgent import BlokusCompetitionAgent
from RunExpriment1 import experiment, get_simple_with_depth
import BlokusGameConstants as C
inShapes = ['shapes' + str(i) + '.txt' for i in xrange(1,11)]

out = 'output2.txt'  # (or csv)
#out_<...> = 'output2_<a relevant name>.txt' (or csv)


def go(a=1000, timeLimit=C.NO_LIMIT):
    return experiment(out=out,
                      timeLimit=timeLimit,
                      times=50,
                      not_ordered=BlokusCompetitionAgent(2, a, ordered=False),
                      ordered=BlokusCompetitionAgent(2, a, ordered=True),
                      )
# 8-2,6-4
if __name__ == '__main__':
    go(timeLimit=0.5)
    # run experiment 2
    # use input files shapes<i>.txt
    # output raw data to 'out' file(s)

    # after runing, manually rename the output file(s) by adding '_results'
    # before the file extension.
    # for example: output2_results.txt
